package com.szp.drug.component.service.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.szp.drug.entity.DrugInstrument;
import com.szp.drug.util.ResultEntity;

/**
 * 器械service接口
 * @author SuZePing
 * @create 2021-03-06 10:03
 * @E-mail suzeping10@126.com
 */
public interface DrugInstrumentService extends IService<DrugInstrument> {

	/**
	 * 分页获取器械
	 * @param instrumentName
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	ResultEntity<PageInfo<DrugInstrument>> getPageInfo(String instrumentName, String pageNum, String pageSize);

	/**
	 * 新增器械
	 * @param instrument
	 * @return
	 */
	ResultEntity<Integer> saveInstrument(DrugInstrument instrument);

	/**
	 * 修改器械
	 * @param instrument
	 * @return
	 */
	ResultEntity<String> editInstrument(DrugInstrument instrument);

	/**
	 * 删除器械
	 * @param instrumentId
	 * @return
	 */
	ResultEntity<String> removeInstrument(String instrumentId);
}
